import request from '@/api/request.js'
import { formatGetUri } from '@/api/common.js'

const fund = {}

fund.saveOrder = params => request.globalRequest(`/fund/client/order/save`, 'POST', params, request.USER)
fund.getOrderList = params => request.globalRequest(`/fund/client/order/getList`, 'POST', params, request.USER)

fund.getProductDetail = params => request.globalRequest(`/fund/product/getDetail`, 'POST', params, request.PUBLIC)
fund.getProductList = params => request.globalRequest(`/fund/product/getList`, 'POST', params, request.PUBLIC)

fund.getCatalogList = params => request.globalRequest(`/fund/catalog/getList`, 'POST', params, request.PUBLIC)

export default fund